<template>
	<div :class="[prefixCls+'-divider']"><span v-if="isShow" :style="'font-size:'+size+'px'"><slot></slot></span></div>
</template>

<script>
import { prefixCls } from '../prefix'
import './divider.css'

export default {
    name: `${prefixCls}Divider`,
	props:['size'],
    data() {
        return {
            prefixCls: prefixCls,
        }
    },
    computed: {
        isShow () {
            return this.$slots.default
        }
    }
}
</script>
